package org.edu.common;

import java.util.Properties;

/**
 * 系统参数读取类，主要负责从类路径下的system.properties配置文件中获得参数值
 * 
 * @author lzh
 * @date 2012
 * @version 1.0
 */
public class SystemPropertiesConfig extends PropertiesConfig {

	/**
	 * 配置文件所在位置
	 */
	public static final String SYSTEM_CONFIG_FILE = "system.properties";

	
	 //--SystemPropertiesConfig类是个单例类--/
	
	private static SystemPropertiesConfig instance = new SystemPropertiesConfig();

	private SystemPropertiesConfig() {
		loadNew(SYSTEM_CONFIG_FILE);
	}

	public static SystemPropertiesConfig getInstance() {
		return instance;
	}

	private Properties pro;

	@Override
	public Properties getProp() {

		return pro;
	}

	@Override
	public void setProp(Properties p) {
		pro = p;
	}

}
